<!DOCTYPE html>
<html>
	<head>
		<title>CSS Regions: float with relative sizing fragmented in differently sized regions</title>
		<link rel="author" title="Mihai Balan" href="mailto:mibalan@adobe.com">
		<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
		<meta name="flags" content="ahem">
		<meta name="assert" content="Test checks that the fragments of floats with relative sizing
				(width specified using percents) that are fragmented in regions with varying sizes
				will be sized relative to each separate region.">
		<link rel="match" href="reference/floats-in-named-flow-024-ref.html">
		<style>
		article {
			font-family: Ahem;
			font-size: 20px;
			line-height: 1em;
			color: green;
		}
		.flow {
			flow-into: f;
		}
		.float {
			width: 50%;
			float: right;
			color: blue;
		}

		.region {
			width: 200px;
			height: 100px;
			border: 10px solid black;
			margin-bottom: 10px;
			flow-from: f;
		}

		.wide {
			width: 400px;
		}

		.region > p {
			background: red;
		}
		</style>
	</head>
	<body>
		<p>
			Test passes if you see two black bordered rectangles separated by a small vertical space.
			The bottom rectangle should be twice as wide as the top one and both rectangles should
			have the left half green and the right half blue.<br>
			You should see no red.
		</p>

		<div class="region">
			<p>&nbsp;</p>
		</div>
		<div class="wide region">
			<p>&nbsp;</p>
		</div>

		<article class="flow">
			<div class="float">xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;</div>
			xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;xxxxx&#8203;
		</article>
	</body>
</html>